package org.zpmis.domain.dict.vo;

import lombok.Data;
import org.zpmis.domain.dict.model.SysDict;

import javax.validation.constraints.NotEmpty;

@Data
public class DictListVo {

    /**
     * 需要查询的业务字典
     */
    private String type;

    private String name;

    private String value;

    private String description;

    private String remarks;

    public DictListVo(SysDict sysDict) {
        this.type = sysDict.getType();
        this.name = sysDict.getName();
        this.value = sysDict.getValue();
        this.description = sysDict.getDescription();
        this.remarks = sysDict.getRemarks();
    }
}
